<template>
  <div class="recommend">
    <div class="recommend-item" v-for="item of recommends" :key="item.sort">
      <a :href="item.link">
        <img :src="item.image" alt />
        <p>{{ item.title }}</p>
      </a>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    recommends: {
      type: Array,
      default() {
        return [];
      }
    }
  }
};
</script>

<style lang="less" scoped>
.recommend {
  display: flex;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 10px solid #dedede;
  .recommend-item {
    flex: 1;
    text-align: center;
    font-size: 12px;
    img {
      width: 100%;
      padding: 10px;
    }
  }
}
</style>